import axiosServer from "../utils/request";
/**
 * 登录接口
 * @param {*} phone
 * @param {*} password
 * @param {*} captcha 验证码可选选择后password参数将失效
 * @returns
 */
//获取音乐url
export const MusicDetail = (getID) => {
  return axiosServer({
    method: "get",
    url: `/song/url?id=${getID}`,
  });
};
//新歌速递歌单
export const RequestNewSongs = (type: number) => {
  return axiosServer({
    method: "get",
    url: "/top/song",
    params: { type },
  });
};
//歌词
export const getLyric = (id) => {
  return axiosServer({
    method: "get",
    url: `/lyric?id=${id}`,
  });
};
